#include "junix.h"
using namespace std;

int main(int argc, char **argv)
{
	int a[]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19};
	vector<int> v(a, a+sizeof(a)/sizeof(a[0]) );
//	v.assign(a,a+5);
	ostream_iterator<int> oit(cout, " ");
	/*
	copy(v.begin(), v.end(), oit);
	cout<<endl;
    */

	v.clear();
	for(int i=0;i<32;i++)
		v.push_back(i);

	while(true)
	{
		random_shuffle(v.begin(), v.end());
		copy(v.begin(), v.end(),  oit);
		cout<<endl;
	}

	return 0;
}
